package com.chainyoung.component_tmtrade.ui.mvp.contract;

import com.chainyoung.common.mvp.IModel;
import com.chainyoung.common.mvp.IView;
import com.chainyoung.component_tmtrade.bean.MyBanlance;
import com.chainyoung.component_tmtrade.bean.TotalAsset;

import java.util.TreeMap;

import io.reactivex.Flowable;

public interface TradeCurrencyBuyContract {

    interface View extends TradeCurrencyListContract.View  {

        void onAddExchangeSuccess(Object object);


        void onGetCoinBalance(MyBanlance data);

        void onCancelTradeSuccess(Object object);

      //  void onGetTotalAsset(TotalAsset data);

    }

    interface Model extends TradeCurrencyListContract.Model {
        Flowable<Object> addExchange(TreeMap<String, Object> map);

        Flowable<MyBanlance> getMyBanlance(TreeMap<String, Object> map);

        Flowable<Object> cancelTrade(TreeMap<String, Object> map);


      //  Flowable<TotalAsset> getTotalAsset(TreeMap<String, Object> map);



    }
}
